import * as subjectsApi from '@/api/hmmm/subjects'

const state = {
  simpleList: [],
  a: 1
}

const mutations = {
  SET_SIMPLE_LIST (state, newValue) {
    state.simpleList = newValue
  }
}

const actions = {
  async updataSimpleList ({ commit }) {
    const res = await subjectsApi.simple()
    commit('SET_SIMPLE_LIST', res)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
